package com.lzy.cloud.ticket.train.servcie.impl;

import com.lzy.cloud.ticket.train.dtos.TrainCodeDto;
import com.lzy.cloud.ticket.train.mapper.TrainCodeMapperExt;
import com.lzy.cloud.ticket.train.response.TrainCodeResponse;
import com.lzy.cloud.ticket.train.servcie.TrainCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2018/6/1.
 */
@Service
public class TrainCodeServiceImpl implements TrainCodeService {

    @Autowired
    TrainCodeMapperExt trainCodeMapperExt;

    @Override
    public List<TrainCodeDto> selectByStationName(TrainCodeDto trainCodeDto) {
        return trainCodeMapperExt.selectByStationName(trainCodeDto.getStationName());
    }

    @Override
    public boolean deleteTrainStationTable() {
        return trainCodeMapperExt.deleteTrainStationTable();
    }

    @Override
    public boolean batchInsertTrainCode(List<TrainCodeDto> oauList) {
        return trainCodeMapperExt.batchInsertTrainCode(oauList);
    }

}
